import 'package:flutter/material.dart';

class EgCard extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    var body = new Center(
      child: new SizedBox(
        height: 250.0,
        child: new Card(
          child: new Column(
            children: <Widget>[
              new ListTile(
                title: new Text(
                  "河南省商丘市睢县河堤乡韩营村东部今日天气：",
                  style: TextStyle(fontWeight: FontWeight.w300),
                ),
                subtitle: new Text("今日天气预报"),
                leading: new Icon(
                  Icons.home,
                  color: Colors.lightBlue,
                ),
              ),
              new Divider(),
              new ListTile(
                title: new Text(
                  "北京市昌平区昌平县城城北街道建安里8号楼里面：",
                  style: TextStyle(fontWeight: FontWeight.w300),
                ),
                subtitle: new Text("明天天气预报"),
                leading: new Icon(
                  Icons.wifi,
                  color: Colors.tealAccent,
                ),
              ),
              new Divider(),
            ],
          ),
        ),
      ),
    );

    return Scaffold(
        appBar: new AppBar(
          title: new Text("卡片布局"),
        ),
        body: body);
  }
}
